package com.zoffy.ybuhelper.adapter;

import android.view.View;
import androidx.annotation.NonNull;
import com.zoffy.ybuhelper.pojo.entity.Category;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public class CategoryRecyclerAdapter extends ItemControlRecyclerAdapter{
    public CategoryRecyclerAdapter(List<?> dataList) {
        super(dataList);
    }

    @Override
    protected void setItemData(@NonNull @NotNull ControlViewHolder holder, int position) {
        holder.informationTextView.setVisibility(View.GONE);
        holder.originTextView.setVisibility(View.GONE);
        holder.deletedTextView.setVisibility(View.GONE);

        Category category=(Category) dataList.get(position);
        holder.nameTextView.setText(category.getName());

    }
}
